package com.gitee.blowforcesquad.dosportsandroid.http.interceptor;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

/**
 * Created by lirenhao on 2017/11/26.
 */
public class TokenInterceptor implements Interceptor {


    @Override
    public Response intercept(Chain chain) throws IOException {
        Request originalRequest = chain.request();

        Request authorised = originalRequest.newBuilder()
//                .header("Authorization", Your.sToken)
                .build();
        return chain.proceed(authorised);
    }
}
